package 
{
	import classes.net.*;
	import classes.gui.*;
	
	import flash.display.Sprite;
	import flash.events.Event;

	/**
	 * ...
	 * @author yanmasharski
	 */
	[Frame(factoryClass="Preloader")]
	public class Main extends Sprite {

		public static var datacontroller:DataController
		
		//GUI
		public static var two_photos_interface:TwoPhotosInterface;
		
		public function Main():void {
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}

		private function init(e:Event = null):void {
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			datacontroller = new DataController();
			two_photos_interface = new TwoPhotosInterface();
			this.addChild(two_photos_interface);
		}

	}

}